<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Promise队列原理</title>
</head>
<body>
    <script>
        let promise = Promise.resolve("后盾人");
        promise = promise.then(
            value => {
                return new Promise((resolve,reject) => {
                    setTimeout(() => {
                        console.log(value);
                        resolve("成功")
                    },2000);
                });
            }
        );

        promise.then(
            value => {
                return new Promise((resolve,reject) => {
                    setTimeout(() => {
                        console.log(value);
                    },2000);
                });
            }
        )
    </script>
</body>
</html>